<h2 mat-dialog-title>{{data.title}}</h2>
<mat-dialog-content>
  {{data.content}}
</mat-dialog-content>
<mat-dialog-actions>
  @if (data.showCancel) {
    <button mat-button (click)="close()">{{data.cancel}}</button>
  }
  <button mat-button (click)="confirm()" cdkFocusInitial>{{data.confirm}}</button>
</mat-dialog-actions>